let allText = '<h1><span><strong>接口名称：登录接口</strong></span></h1>';
let searchText = '<h1>接口名称：登录接口</h1>';

let cleanedAllText = allText.replace(/<(?!h1)[^>]*>/g, '');
let cleanedSearchText = searchText.replace(/<(?!h1)[^>]*>/g, '');

console.log(cleanedAllText);
console.log(cleanedSearchText);
if (cleanedAllText.includes(cleanedSearchText)) {
    console.log('匹配到');
} else {
    console.log('未匹配到');
}


let aa = [
    {
        "label": "1",
        "value": "1",
        "id": 0,
        "children": [
            {
                "label": "2",
                "value": "2",
                "id": 1,
                "children": [
                    {
                        "label": "3",
                        "value": "3",
                        "id": 2,
                        "children": [
                            {
                                "label": "4",
                                "value": "4",
                                "id": 3,
                                "children": []
                            },
                            {
                                "label": "5",
                                "value": "5",
                                "id": 4,
                                "children": []
                            },
                            {
                                "label": "6",
                                "value": "6",
                                "id": 5,
                                "children": []
                            }
                        ]
                    }
                ]
            }
        ]
    }
]